﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace pnh
{
    public partial class InputBox : Form
    {
        //private string strResult;

        public InputBox()
        {
            InitializeComponent();
        }

        public string Label
        {
            get { return label1.Text; }
            set { label1.Text = value; }
        }

        public string showDialog()
        {
            textBox1.Text = "";
            DialogResult res = ShowDialog();
            if (res == System.Windows.Forms.DialogResult.OK)
                return textBox1.Text;

            return "";
        }
    }
}
